//package com.info.zhiduoduo.admin.controller;
//
//import com.info.zhiduoduo.admin.model.formbean.account.RepayCrowdsourceProjectItemFormBean;
//import com.info.zhiduoduo.admin.model.formbean.common.CrowdsourceBatchManualErrorFormBean;
//import com.info.zhiduoduo.admin.model.formbean.crowdsource.*;
//import com.info.zhiduoduo.admin.model.formbean.invoice.EditContractorInvoiceFormBean;
//import com.info.zhiduoduo.admin.model.formbean.invoice.QueryContractorInvoiceFormBean;
//import com.info.zhiduoduo.admin.model.formbean.project.GenerateProjectAcceptance;
//import com.info.zhiduoduo.admin.model.vo.crowdsource.ImportCrowdsourceProjectVO;
//import com.info.zhiduoduo.admin.service.CrowdsourceService;
//import com.info.zhiduoduo.admin.service.ProjectService;
//import com.info.zhiduoduo.common.annotation.LogEntity;
//import com.info.zhiduoduo.common.annotation.LogParameter;
//import com.info.zhiduoduo.common.annotation.ZddLog;
//import com.info.zhiduoduo.common.constants.SmartResult;
//import com.info.zhiduoduo.common.constants.system.ZddLogType;
//import com.info.zhiduoduo.common.formbean.BaseListFormBean;
//import com.info.zhiduoduo.common.formbean.BaseSimpleFormBean;
//import com.info.zhiduoduo.core.service.common.ContractDocService;
//import com.info.zhiduoduo.core.service.common.DocService;
//import com.info.zhiduoduo.repository.dto.crowdsource.CrowdsourceProjectBriefDto;
//import com.info.zhiduoduo.repository.dto.crowdsource.CrowdsourceProjectDeliveryFileDto;
//import com.info.zhiduoduo.repository.dto.crowdsource.TaxPaymentVoucherListDto;
//import com.info.zhiduoduo.repository.entity.company.CompanyProject;
//import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceProject;
//import com.info.zhiduoduo.repository.entity.crowdsource.CrowdsourceProjectItem;
//import com.info.zhiduoduo.repository.entity.crowdsource.TaxPaymentVoucher;
//import com.info.zhiduoduo.repository.entity.order.TradeRecord;
//import com.info.zhiduoduo.repository.mapper.crowdsource.CrowdsourceTradeRecordMapper;
//import com.info.zhiduoduo.repository.mapper.order.TradeRecordMapper;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletResponse;
//import javax.validation.Valid;
//import javax.validation.constraints.Positive;
//import java.io.IOException;
//import java.util.Date;
//import java.util.List;
//
//@Api(tags = "管理端 众包自然人")
//@RestController
//@RequestMapping("/crowdsource")
//public class CrowdsourceController {
//
//	@Autowired
//	CrowdsourceService crowdsourceService;
//	@Autowired
//	DocService docService;
//	@Autowired
//	ContractDocService contractDocService;
//
//	/**
//	 * 编辑众包自然人实名信息
//	 */
//	@PostMapping("/editRealnameInfo")
//	public SmartResult editRealnameInfo(@RequestBody BaseSimpleFormBean<CrowdsourceRealNameAuthFormBean> formBean) {
//		return crowdsourceService.editRealnameInfo(formBean);
//	}
//
//	/**
//	 众包自然人实名认证
//	 */
//	@PostMapping("/realNameConfirm")
//	public SmartResult realNameConfirm(@RequestBody BaseSimpleFormBean<CrowdsourceRealNameFormBean> formBean){
//		return crowdsourceService.realNameConfirm(formBean);
//	}
//
//	/**
//	 * 获取众包合伙人列表
//	 */
//	@PostMapping("/list")
//	public SmartResult getList(@RequestBody BaseSimpleFormBean<CrowdsourceListFormBean> formBean) {
//		return crowdsourceService.getCrowsourceList(formBean);
//	}
//
//	/**
//	 * 解约企业
//	 */
//	@PostMapping("/unbindcompany")
//	public SmartResult unbindcompany(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.unbindcompany(formBean);
//	}
//
//	/**
//	 * 自然人统一 协议，并完成认证
//	 */
//	@PostMapping("/acceptProtocol")
//	public SmartResult acceptProtocolAndAuth(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.acceptProtocolAndAuth(formBean);
//	}
//
//	/**
//	 * 获取智众包项目，企业发布的
//	 */
//	@PostMapping("/projectList")
//	public SmartResult<CrowdsourceProjectBriefDto> getProjectList(@RequestBody BaseSimpleFormBean<CrowdsourceProjectListFormBean> formBean) {
//		return crowdsourceService.getProjectList(formBean);
//	}
//
//	/**
//	 * 获取智众包项目详情
//	 */
//	@PostMapping("/projectDetail")
//	public SmartResult getProjectDetail(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.getProjectDetail(formBean);
//	}
//
//	@ApiOperation("导出众包项目详情")
//	@GetMapping("/exportProjectDetail")
//	public void exportProjectDetail(HttpServletResponse response,int projectid) {
//		crowdsourceService.exportProjectDetail(response,projectid);
//	}
//
//	@ApiOperation("导出众包项目交易详情")
//	@GetMapping("/exportProjectTransactionDetail")
//	public void exportProjectTransactionDetail(HttpServletResponse response,ExportProjectTransactionDetailFormBean formBean) {
//		crowdsourceService.exportProjectTransactionDetail(response,formBean);
//	}
//
//	/**
//	 * 智众包项目支付记录
//	 */
//	@PostMapping("/tradeRecordList")
//	public SmartResult getTradeRecordList(@RequestBody BaseSimpleFormBean<CrowdsourceTradeRecordListFormBean> formBean) {
//		return crowdsourceService.getTradeRecordList(formBean);
//	}
//
//	/**
//	 * 获取智众包项目批量支付的明细列表
//	 */
//	@PostMapping("/tradeRecordItemList")
//	public SmartResult getTradeRecordItemList(@RequestBody BaseSimpleFormBean<CrowdsourceTradeRecordItemListFormBean> formBean) {
//		return crowdsourceService.getTradeRecordItemList(formBean);
//	}
//
//	/**
//	 * 手动改为交易失败(支持批量)
//	 */
//	@ApiOperation("手动改为交易失败(支持批量)")
//	@PostMapping("/batchManualError")
//	public SmartResult batchManualError(@RequestBody BaseSimpleFormBean<CrowdsourceBatchManualErrorFormBean> formBean) {
//		return crowdsourceService.batchManualError(formBean);
//	}
//
//	/**
//	 重新支付智众包项目单条明细
//	 */
//	@PostMapping("/repayProjectItem")
//	public SmartResult repayProjectItem(@RequestBody BaseSimpleFormBean<RepayCrowdsourceProjectItemFormBean> formBean) {
//		return crowdsourceService.repayProjectItem(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.DELETE,name = "删除众包自然人",entities = @LogEntity(entity = CrowdsourceProjectItem.class,parameters =
//	@LogParameter(fields = "crowdsourceid",parameters = "formBean.reqdata")))
//	@ApiOperation(value = "删除众包自然人", notes = "reqdata 传 crowdsourceid")
//	@PostMapping("/delCrowdsource")
//	public SmartResult delCrowdsource(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.delCrowdsource(formBean);
//	}
//
//	@ApiOperation("导入众包自然人")
//	@PostMapping("/uploadCrowdsource")
//	public SmartResult importCrowdsources(@RequestParam("file") MultipartFile file) {
//		return crowdsourceService.importCrowdsources(file);
//	}
//
//	@ApiOperation("导入历史成交的众包项目")
//	@PostMapping("/importDealedCrowdsourceProject")
//	public SmartResult importDealedCrowdsourceProject(@RequestParam("file") MultipartFile file, ImportDealCrowdsourceFormBean bean) {
//		return crowdsourceService.importDealedCrowdsourceProject(file,bean);
//	}
//
//	@ApiOperation("批量删除导入历史成交的众包项目")
//	@PostMapping("/delBatchImportProject")
//	public SmartResult delBatchImportProject(@RequestBody BaseListFormBean<Integer> formBean) {
//		return crowdsourceService.delBatchImportProject(formBean);
//	}
//
//	/**
//	 * 自然人/个体户申请开票流程
//	 * 第一步：推送发包方信息
//	 */
//	@PostMapping("/pushEmployer")
//	public SmartResult pushEmployer(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.pushEmployer(formBean);
//	}
//
//	/**
//	 * 自然人申请开票流程
//	 * 第二步：推送项目信息
//	 */
//	@PostMapping("/pushProject")
//	public SmartResult pushProject(@RequestBody BaseSimpleFormBean<ApplyInvoiceFormBean> formBean,HttpServletResponse response) {
//		return crowdsourceService.pushProject(formBean,response);
//	}
//
//	/**
//	 * 自然人申请开票流程
//	 * 第三步：推送合同信息
//	 */
//	@PostMapping("/pushContract")
//	public SmartResult pushContract(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.pushContract(formBean);
//	}
//
//	/**
//	 * 自然人申请开票流程
//	 * 第四步：推送结算
//	 */
//	@PostMapping("/pushSettlement")
//	public SmartResult pushSettlement(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.pushSettlement(formBean);
//	}
//
//	/**
//	 * 自然人/个体户申请开票
//	 */
//	@ApiOperation("自然人/个体户申请开票")
//	@PostMapping("/applyForInvoice")
//	public SmartResult applyForInvoice(@RequestBody BaseSimpleFormBean<ApplyInvoiceFormBean> formBean, HttpServletResponse response) {
//		return crowdsourceService.applyForInvoice(formBean,response);
//	}
//
//	/**
//	 * 自然人/个体户申请开票流程
//	 * 第五步：完成开票(流程结束)
//	 */
//	@ApiOperation("自然人/个体户申请开票流程-完成开票")
//	@PostMapping("/complete")
//	public SmartResult complete(@RequestBody BaseSimpleFormBean<CompleteInvoiceFormBean> formBean) {
//		return crowdsourceService.complete(formBean);
//	}
//
//	/**
//	 * 自然人/个体户申请开票流程
//	 * 作废开票
//	 */
//	@ZddLog(type = ZddLogType.CREATE, name = "自然人/个体户申请开票流程-作废开票")
//	@ApiOperation("自然人/个体户申请开票流程-作废开票")
//	@PostMapping("/invalid")
//	public SmartResult invalid(@RequestBody BaseSimpleFormBean<InvalidInvoiceFormBean> formBean) {
//		return crowdsourceService.invalid(formBean);
//	}
//
//	/**
//	 * 更新银行卡信息
//	 */
//	@ApiOperation("更新银行卡信息")
//	@PostMapping("/updateBankInfo")
//	public SmartResult updateBankInfo(@RequestBody BaseSimpleFormBean<UpdateBankInfoFormBean> formBean) {
//		return crowdsourceService.updateBankInfo(formBean);
//	}
//
//	/**
//	 * 导出嘉银自然人信息
//	 */
//	@ApiOperation("导出嘉银自然人信息")
//	@GetMapping("/exportJiaYinNaturalPerson")
//	public void exportJiaYinNaturalPerson(HttpServletResponse response,
//										  @ApiParam(name = "startDate", value = "开始时间") @RequestParam(name = "startDate", required = false) Long startDate,
//										  @ApiParam(name = "endDate", value = "结束时间") @RequestParam(name = "endDate", required = false) Long endDate)throws Exception{
//		crowdsourceService.exportJiaYinNaturalPerson(response,startDate,endDate);
//	}
//
//	@ApiOperation("将嘉银自然人身份证信息打包为压缩包")
//	@GetMapping("/compressAllJiaYinInfo")
//	public void compressAllJiaYinInfo(HttpServletResponse response,
//									  @RequestParam(name = "startDate", required = false) Long startDate,
//									  @RequestParam(name = "endDate", required = false) Long endDate,
//									  @RequestParam(name = "type") int type) throws IOException {
//		crowdsourceService.compressAllJiaYinInfo(response,startDate,endDate,type);
//	}
//
//	@ApiOperation("根据自然人ID压缩身份证文件")
//	@GetMapping("/compressIdNoFileById")
//	public void compressIdNoFileById(HttpServletResponse response, @RequestParam(name = "ids") int[] ids) throws IOException {
//		crowdsourceService.compressIdNoFileById(response,ids);
//	}
//
//	@ApiOperation("根据合并开票Id压缩该开票下自然人身份证文件")
//	@PostMapping("/compressIdNoInfo")
//	public SmartResult compressIdNoInfo(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.compressIdNoInfo(formBean);
//	}
//
//	@ApiOperation(value = "生成 发包方与商户 之间的合同")
//	@GetMapping("/getCompanyAndWuShengContract")
//	public void getCompanyAndWuShengContract(@RequestParam int projectId, HttpServletResponse response){
//		docService.getCompanyAndWuShengContract(projectId, response);
//	}
//
//	@ApiOperation("下载众包项目合同附件")
//	@GetMapping("/downloadProjectAttachment")
//	public void downloadProjectAttachment(HttpServletResponse response, @RequestParam int projectid) throws IOException {
//		docService.downloadProjectAttachment(response,projectid);
//	}
//
//	@ApiOperation("导出金蝶应收单")
//	@GetMapping("/exportReceivable")
//	public void exportReceivable(HttpServletResponse response,
//								 @ApiParam(name = "start", value = "开始时间") @RequestParam(name = "start") Long start,
//								 @ApiParam(name = "end", value = "结束时间") @RequestParam(name = "end") Long end){
//		Date startDate = new Date(start);
//		Date endDate = new Date(end);
//		crowdsourceService.exportReceivable(response, startDate, endDate);
//	}
//
//	@ApiOperation("开通可切换成 创客的功能")
//	@PostMapping("/openConvertZddMaker")
//	public SmartResult openConvertZddMaker(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.openConvertZddMaker(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.UPDATE, name = "上传众包任务证据链")
//	@ApiOperation("上传众包任务证据链")
//	@PostMapping("/uploadProjectFileUrl")
//	public SmartResult uploadProjectFileUrl(@RequestBody BaseSimpleFormBean<UploadProjectFileUrlFormBean> formBean) {
//		return crowdsourceService.uploadProjectFileUrl(formBean);
//	}
//
//	@ApiOperation("下载众包项目合同文件-zip包(包含所有子项目)")
//	@GetMapping("/downloadCrowdsourceProjectZipFileByCompids")
//	public void downloadCrowdsourceProjectZipFileByCompids(HttpServletResponse response, @RequestParam List<Integer> compids) {
//		docService.downloadCrowdsourceProjectZipFileByCompids(response, compids);
//	}
//
//	@ApiOperation("下载众包项目合同文件-zip包(包含所有子项目)")
//	@GetMapping("/downloadCrowdsourceProjectZipFile")
//	public void downloadCrowdsourceProjectZipFile(HttpServletResponse response, @RequestParam int projectid) {
//		docService.downloadCrowdsourceProjectZipFile(response, projectid);
//	}
//
//	@ApiOperation("下载众包子项目合同文件")
//	@GetMapping("/downloadCrowdsourceProjectItemDocFile")
//	public void downloadCrowdsourceProjectItemDocFile(HttpServletResponse response, @RequestParam int projectItemId) {
//		docService.downloadCrowdsourceProjectItemDocFile(response, projectItemId);
//	}
//
//	@ApiOperation("下载众包子项目合同文件pdf")
//	@GetMapping("/downloadCrowdsourceItemContractPdf")
//	public void downloadCrowdSourceItemContractPdf(HttpServletResponse response, @RequestParam int projectItemId) {
//		contractDocService.downloadCrowdSourceItemContractPdf(response, projectItemId);
//	}
//
//	@ApiOperation("下载众包项目合同文件pdf-zip包(包含所有子项目)")
//	@GetMapping("/downloadCrowdsourceContractPdfZip")
//	public void downloadCrowdsourceContractPdfZip(HttpServletResponse response, @RequestParam int projectid) {
//		contractDocService.downloadCrowdSourceContractZip(response, projectid);
//	}
//
//	@ApiOperation("发布前最近一笔的充值回单")
//	@GetMapping("/RechargeReceipt")
//	public SmartResult RechargeReceipt(@RequestParam @Positive Integer projectid) {
//		return crowdsourceService.RechargeReceipt(projectid);
//	}
//
//	@ApiOperation("获取项目的所有交付物列表")
//	@PostMapping("/listProjectDeliveryFiles")
//	public SmartResult<CrowdsourceProjectDeliveryFileDto> listProjectDeliveryFiles(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.listProjectDeliveryFiles(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.CREATE, name = "批量生成众包项目交付物")
//	@ApiOperation("生成众包项目验收文档")
//	@PostMapping("/generateProjectDeliveryFile")
//	public SmartResult generateProjectDeliveryFile(@RequestBody BaseSimpleFormBean<GenerateProjectAcceptance> formBean){
//		return crowdsourceService.generateProjectDeliveryFile(formBean.getReqdata());
//	}
//
//	@ZddLog(type = ZddLogType.CREATE, name = "上传众包子项目任务证据链")
//	@ApiOperation("上传众包子项目任务证据链")
//	@PostMapping("/subprojectEvidenceChain")
//	public SmartResult subprojectEvidenceChain(@RequestBody BaseSimpleFormBean<UploadProjectFileUrlFormBean> formBean) {
//		return crowdsourceService.subprojectEvidenceChain(formBean);
//	}
//
//	@ApiOperation("智零工完税凭证列表")
//	@PostMapping("/taxPaymentVoucherList")
//	public SmartResult<TaxPaymentVoucherListDto> taxPaymentVoucherList(@RequestBody BaseSimpleFormBean<TaxPaymentVoucherListFormBean> formBean) {
//		return crowdsourceService.taxPaymentVoucherList(formBean);
//	}
//
//	@ApiOperation("添加和编辑智零工完税凭证 添加id传0")
//	@PostMapping("/addTaxPaymentVoucher")
//	public SmartResult addTaxPaymentVoucher(@RequestBody BaseSimpleFormBean<TaxPaymentVoucher> formBean) {
//		return crowdsourceService.addTaxPaymentVoucher(formBean.getReqdata());
//	}
//
//	@ApiOperation("智零工完税凭证详情 传id")
//	@PostMapping("/taxPaymentVoucherDetails")
//	public SmartResult<TaxPaymentVoucherListDto> taxPaymentVoucherDetails(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.taxPaymentVoucherDetails(formBean.getReqdata());
//	}
//
//	@ApiOperation("删除智零工完税凭证 传id")
//	@PostMapping("/deleteTaxPaymentVoucher")
//	public SmartResult deleteTaxPaymentVoucher(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.deleteTaxPaymentVoucher(formBean.getReqdata());
//	}
//
//
//	/**
//	 * 个人资金流水
//	 */
//	@ApiOperation("个人资金流水")
//	@PostMapping("/personalCapitalFlow")
//	public SmartResult personalCapitalFlow(@RequestBody BaseSimpleFormBean<PersonalCapitalFlowFormBean> formBean) {
//		return crowdsourceService.personalCapitalFlow(formBean);
//	}
//
//	@ApiOperation("导出个人资金流水")
//	@GetMapping("/derivePersonalCapitalFlow")
//	public void derivePersonalCapitalFlow(HttpServletResponse response,PersonalCapitalFlowFormBean formBean) {
//		crowdsourceService.derivePersonalCapitalFlow(response,formBean);
//	}
//
//	/**
//	 * 智零工业务发票列表
//	 */
//	@ApiOperation("智零工业务发票列表")
//	@PostMapping("/smartGigBusinessInvoiceList")
//	public SmartResult smartGigBusinessInvoiceList(@RequestBody BaseSimpleFormBean<QueryContractorInvoiceFormBean> formBean) {
//		return crowdsourceService.smartGigBusinessInvoiceList(formBean);
//	}
//
//	@ApiOperation("导出智零工业务发票列表")
//	@GetMapping("/deriveSmartGigBusinessInvoice")
//	public void deriveSmartGigBusinessInvoice(HttpServletResponse response,QueryContractorInvoiceFormBean formBean) {
//		crowdsourceService.deriveSmartGigBusinessInvoice(response,formBean);
//	}
//	/**
//	 * 上传发票
//	 */
//	@ApiOperation("上传发票")
//	@PostMapping("/uploadInvoice")
//	public SmartResult uploadInvoice(@RequestBody BaseSimpleFormBean<EditContractorInvoiceFormBean> formBean) {
//		return crowdsourceService.uploadInvoice(formBean);
//	}
//	/**
//	 * 发票详情
//	 */
//	@ApiOperation("发票详情")
//	@PostMapping("/invoiceDetails")
//	public SmartResult invoiceDetails(@RequestBody BaseSimpleFormBean<EditContractorInvoiceFormBean> formBean) {
//		return crowdsourceService.invoiceDetails(formBean);
//	}
//	@Resource
//	CrowdsourceTradeRecordMapper crowdsourceTradeRecordMapper;
//	@Autowired
//	ProjectService projectService;
//	/**
//	 * 批量定时任务
//	 */
//	@ApiOperation("批量定时任务")
//	@PostMapping("/batchTradeState")
//	public void batchTradeState(@RequestBody BaseSimpleFormBean<EditContractorInvoiceFormBean> formBean) {
//		crowdsourceTradeRecordMapper.getInProcessTradeids().forEach(batchId -> {
//			try {
//				projectService.checkCrowdsourceBatchTradeState(batchId);
//			} catch (Exception e) {
//			}
//		});
//	}
//	@Resource
//	TradeRecordMapper tradeRecordMapper;
//	/**
//	 * 批量定时任务
//	 */
//	@ApiOperation("批量定时任务")
//	@PostMapping("/checkTradeState")
//	public String checkTradeState() {
//		StringBuilder sb = new StringBuilder();
//		tradeRecordMapper.getInProcessTradeids().forEach(tradeid -> {
//			try {
//				TradeRecord trade = new TradeRecord().selectById(tradeid);
//				CompanyProject project = new CompanyProject().selectById(trade.getProjectid());
//				if (project == null) return;
//				int prevState = project.getState();
//
//				projectService.queryTradeState(tradeid);
//
//				// 修改后
//				project = new CompanyProject().selectById(trade.getProjectid());
//				int currState = project.getState();
//
//				if (prevState != currState) {
//					sb.append(String.format("项目id：%d，由状态%d 修改为%d", project.getProjectid(), prevState, currState));
//					sb.append("\n");
//				}
//			} catch (Exception e) {
//				e.printStackTrace();
//			}
//		});
//
//		return sb.toString();
//	}
//
//
//	@ApiOperation("导入众包自然人")
//	@PostMapping("/v2/uploadCrowdsource")
//	public SmartResult uploadCrowdsource(@RequestParam("file") MultipartFile file,
//										 @RequestParam("compid") int compid,
//										 @RequestParam("createBy") int createBy) {
//		return crowdsourceService.uploadCrowdsource(file, compid, createBy);
//	}
//
//	@ApiOperation("查询导入众包自然人文件记录")
//	@PostMapping("/v2/getCrowdsourceUploadRecord")
//	public SmartResult getCrowdsourceUploadRecord(@RequestBody BaseSimpleFormBean<CrowdsourceImportRecordFormBean> formBean) {
//		return crowdsourceService.getCrowdsourceUploadRecord(formBean);
//	}
//
//	@ApiOperation("导入并创建众包项目")
//	@PostMapping("/importCreateCrowdsourceProject")
//	public SmartResult<ImportCrowdsourceProjectVO> importCreateCrowdsourceProject(@RequestParam("file") MultipartFile file,
//																				  ImportCrowdProjectFormBean formBean) {
//		return crowdsourceService.importCreateCrowdsourceProject(file, formBean);
//	}
//
//	/**
//	 * 删除项目，已经提交的不能删除
//	 */
//	@ZddLog(type = ZddLogType.DELETE, name = "企业删除智众包项目")
//	@PostMapping("/delProject")
//	public SmartResult delProject(@RequestBody BaseSimpleFormBean<Integer> formBean) {
//		return crowdsourceService.delProject(formBean);
//	}
//
//	@ZddLog(type = ZddLogType.UPDATE, name = "修改智众包项目",entities = @LogEntity(entity = CrowdsourceProject.class,parameters =
//			    @LogParameter(fields = "projectid",parameters = "formBean.reqdata.projectid")))
//	@PostMapping("/editProject")
//	public SmartResult editProject(@RequestBody BaseSimpleFormBean<CrowdsourceEditFormBean> formBean) {
//		return crowdsourceService.editProject(formBean);
//	}
//
//	/**
//	 * 提交并支付智众包项目
//	 */
//	@ApiOperation("ApiOperation")
//	@PostMapping("/submitAndPayProject")
//	public SmartResult submitAndPayProject(@Valid @RequestBody BaseSimpleFormBean<SubmitAndPayProjectFormBean> formBean) {
//		return crowdsourceService.submitAndPayProject(formBean);
//	}
//}
